<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>登录界面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css"
	href="themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="jquery.min.js"></script>
	<script type="text/javascript" src="jquery.easyui.min.js"></script>
	<script type="text/javascript" src="login.js"></script>

	<script>
		function CheckUser1(){
		var username=document.getElementById("usr");
		if(username.value=="")
		{
			alert("用户名不能为空");
			return false;
			window.event.retrunValue = false;
		}
		var password=document.getElementById("passwd");
		if(password.value=="")
		{
			alert("密码不能为空");
			return false;
		}
		return true;
		}
	</script>

	<style>
	input[type="text"]
	{
  		background-color:yellow;
	}
	</style>
	
	<style>
		a:link {color:#FF0000;text-decoration:none;background-color:#B2FF99;}    /* 未被访问的链接 */
		a:visited {color:#00FF00;text-decoration:none;background-color:#FFFF85;} /* 已被访问的链接 */
		a:hover {color:#FF00FF;text-decoration:underline;background-color:#FF704D;}   /* 鼠标指针移动到链接上 */
		a:active {color:#0000FF;text-decoration:underline;background-color:#FF704D;}  /* 正在被点击的链接 */
	</style>

  </head>
  
  <body bgcolor="#F5FDF7">
    <center>
  	<h2>用户登录</h2>
  	<hr>
  	<form action="checkUser.do" method="post">
  	<div style="margin:20px auto;width:80px;height:80px;border-radius:80px;overflow:hidden">
			<img src="images/login1.jpg" style="margin:0;width:100%;height:100%;">
	</div>
  	用户名：<input id="usr" name="username" class="easyui-textbox" data-options="prompt:'Type username',iconCls:'icon-man'" autofocus><br>
  	
  	<br>
  	密&nbsp;码：</a><input id="passwd" name="password" class="easyui-passwordbox" data-options="prompt:'Type password'"><br>
  	
  	<br>
  	<br>
  	<input type="checkbox" id="remember" name="remember" value="sss">记住我&nbsp;<a href="http://i.360.cn/findpwd/">忘记密码?</a> 
  	<br>
  	<input type="submit" onclick=CheckUser1() value="提交">
  	&nbsp;<input type="reset" value="重置">	
  	</form>
    <br>
 
    <div class="panel" style="back-color:red">
	<center><p>本网站是一个用户信息管理网站,请先登录.</p></center>
	</div>
	<button class="flip">点击这里收起</button>
    </center>
  </body>
</html>
